package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;

public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfoVo trade(TradeVo tradeVo);

    void submitOrder(OrderInfoVo orderInfoVo);

    void updateOrderStatus(String orderNo, String expect, String target);

    OrderInfo getOrderInfo(String orderNo);

    Page<OrderInfo> findOrderPage(Integer page, Integer limit);

}
